#include <QApplication>
#include "ChooseDlg.h"
#include "MainWnd.h"
#include <QTime>
#include <QSound>

int main(int argc, char* argv[])
{
    //QApplication抽象了QT的应用程序
    QApplication app(argc, argv);

    QTime t = QTime::currentTime();
    qsrand(t.msec()+t.second()*1000);

    ChooseDlg dlg;
    if(dlg.exec() != QDialog::Accepted)
        return 0;

    MainWnd wnd(dlg._selected);
    wnd.show();


    //进入消息循环，等待用户输入
    return app.exec();
}
